package com.threadmethod.yieId;

/**
 * @PackageName:com.threadmethod.yieId
 * @ClassName:Test05
 * @Description:
 * @Author: zhangxiaoyu
 * @date 2020/11/19 17:09
 */
public class Test05 {

    public static void main(String[] args){

        SubThread05 t5 = new SubThread05();

        t5.start();

        long begin = System.currentTimeMillis();

        long sun = 0;

        for(int i =1;i<=1000000;i++){
            sun +=i;
        }


        long end =System.currentTimeMillis();

        System.out.println("main 用时："+(end - begin));
    }
}
